const nunjucks = require('nunjucks');
/**
 * 
 */
nunjucks.configure({
    autoescape:false
});
//src must be a string or an object describing the source
let result = nunjucks.renderString("{{names|join('-')}}",{
    names:['zhu','feng']
});
console.log(result);
let result2 = nunjucks.renderString("{{name|replace('world','there')|upper}}",{
    name:'hello world'
});
console.log(result2);